package com.emep.changzhi.analyse.repository.equipment;

import com.emep.changzhi.analyse.entity.equipment.EquipmentMoniter;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;

/**
 * @author yangj
 * @Description: 监测设备持久层接口
 * @date 2018/2/24  9:28
 * @version V1.0
 */
public interface EquipmentMoniterRepository extends JpaRepository<EquipmentMoniter , Long> , JpaSpecificationExecutor<EquipmentMoniter> {

    //根据id删除equipmentMoniter
    @Modifying
    @Transactional
    Integer deleteEquipmentMoniterById(String id);
    

    //根据id查询EquipmentMoniter
    EquipmentMoniter findEquipmentMoniterById(String id);
}
